.class public Lcom/waiqin365/lightapp/view/GenderSelectView;
.super Lcom/waiqin365/lightapp/view/BaseCustomView;


# instance fields
.field private e:Landroid/content/Context;

.field private f:Landroid/widget/RadioGroup;

.field private g:Landroid/widget/RadioButton;

.field private h:Landroid/widget/RadioButton;

.field private i:Landroid/widget/TextView;

.field private j:Landroid/widget/ImageView;

.field private k:Ljava/lang/String;

.field private l:Ljava/lang/String;

.field private m:Landroid/widget/LinearLayout;

.field private n:Ljava/lang/String;

.field private o:Ljava/lang/String;


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 1

    invoke-direct {p0, p1}, Lcom/waiqin365/lightapp/view/BaseCustomView;-><init>(Landroid/content/Context;)V

    const-string/jumbo v0, "0"

    iput-object v0, p0, Lcom/waiqin365/lightapp/view/GenderSelectView;->k:Ljava/lang/String;

    const-string/jumbo v0, ""

    iput-object v0, p0, Lcom/waiqin365/lightapp/view/GenderSelectView;->n:Ljava/lang/String;

    const-string/jumbo v0, ""

    iput-object v0, p0, Lcom/waiqin365/lightapp/view/GenderSelectView;->o:Ljava/lang/String;

    invoke-direct {p0, p1}, Lcom/waiqin365/lightapp/view/GenderSelectView;->a(Landroid/content/Context;)V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 1

    invoke-direct {p0, p1, p2}, Lcom/waiqin365/lightapp/view/BaseCustomView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    const-string/jumbo v0, "0"

    iput-object v0, p0, Lcom/waiqin365/lightapp/view/GenderSelectView;->k:Ljava/lang/String;

    const-string/jumbo v0, ""

    iput-object v0, p0, Lcom/waiqin365/lightapp/view/GenderSelectView;->n:Ljava/lang/String;

    const-string/jumbo v0, ""

    iput-object v0, p0, Lcom/waiqin365/lightapp/view/GenderSelectView;->o:Ljava/lang/String;

    invoke-direct {p0, p1}, Lcom/waiqin365/lightapp/view/GenderSelectView;->a(Landroid/content/Context;)V

    return-void
.end method

.method private a(Landroid/content/Context;)V
    .locals 3

    iput-object p1, p0, Lcom/waiqin365/lightapp/view/GenderSelectView;->e:Landroid/content/Context;

    iget-object v0, p0, Lcom/waiqin365/lightapp/view/GenderSelectView;->e:Landroid/content/Context;

    const v1, 0x7f030140

    const/4 v2, 0x0

    invoke-static {v0, v1, v2}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v1

    invoke-virtual {p0, v1}, Lcom/waiqin365/lightapp/view/GenderSelectView;->addView(Landroid/view/View;)V

    const v0, 0x7f0c0757

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/RadioGroup;

    iput-object v0, p0, Lcom/waiqin365/lightapp/view/GenderSelectView;->f:Landroid/widget/RadioGroup;

    const v0, 0x7f0c0758

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/RadioButton;

    iput-object v0, p0, Lcom/waiqin365/lightapp/view/GenderSelectView;->g:Landroid/widget/RadioButton;

    const v0, 0x7f0c0759

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/RadioButton;

    iput-object v0, p0, Lcom/waiqin365/lightapp/view/GenderSelectView;->h:Landroid/widget/RadioButton;

    const v0, 0x7f0c0756

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/view/GenderSelectView;->i:Landroid/widget/TextView;

    const v0, 0x7f0c0083

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/view/GenderSelectView;->j:Landroid/widget/ImageView;

    const v0, 0x7f0c0755

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/waiqin365/lightapp/view/GenderSelectView;->m:Landroid/widget/LinearLayout;

    return-void
.end method


# virtual methods
.method public b()Z
    .locals 2

    const-string/jumbo v0, "1"

    iget-object v1, p0, Lcom/waiqin365/lightapp/view/GenderSelectView;->k:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public e()Ljava/lang/String;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/view/GenderSelectView;->l:Ljava/lang/String;

    return-object v0
.end method

.method public f()Z
    .locals 3

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/view/GenderSelectView;->h()Ljava/lang/Object;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/view/GenderSelectView;->n:Ljava/lang/String;

    const-string/jumbo v2, "1"

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_0

    const-string/jumbo v1, "\u7537"

    invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-nez v1, :cond_2

    :cond_0
    iget-object v1, p0, Lcom/waiqin365/lightapp/view/GenderSelectView;->n:Ljava/lang/String;

    const-string/jumbo v2, "0"

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_1

    const-string/jumbo v1, "\u5973"

    invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-nez v1, :cond_2

    :cond_1
    iget-object v1, p0, Lcom/waiqin365/lightapp/view/GenderSelectView;->n:Ljava/lang/String;

    invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_3

    :cond_2
    const/4 v0, 0x0

    :goto_0
    return v0

    :cond_3
    const/4 v0, 0x1

    goto :goto_0
.end method

.method public g()Ljava/lang/CharSequence;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/view/GenderSelectView;->i:Landroid/widget/TextView;

    invoke-virtual {v0}, Landroid/widget/TextView;->getText()Ljava/lang/CharSequence;

    move-result-object v0

    invoke-interface {v0}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public h()Ljava/lang/Object;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/view/GenderSelectView;->g:Landroid/widget/RadioButton;

    invoke-virtual {v0}, Landroid/widget/RadioButton;->isChecked()Z

    move-result v0

    if-eqz v0, :cond_1

    const-string/jumbo v0, "\u7537"

    iput-object v0, p0, Lcom/waiqin365/lightapp/view/GenderSelectView;->o:Ljava/lang/String;

    :cond_0
    :goto_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/view/GenderSelectView;->o:Ljava/lang/String;

    return-object v0

    :cond_1
    iget-object v0, p0, Lcom/waiqin365/lightapp/view/GenderSelectView;->h:Landroid/widget/RadioButton;

    invoke-virtual {v0}, Landroid/widget/RadioButton;->isChecked()Z

    move-result v0

    if-eqz v0, :cond_0

    const-string/jumbo v0, "\u5973"

    iput-object v0, p0, Lcom/waiqin365/lightapp/view/GenderSelectView;->o:Ljava/lang/String;

    goto :goto_0
.end method

.method public setBackground(I)V
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/view/GenderSelectView;->m:Landroid/widget/LinearLayout;

    invoke-virtual {v0, p1}, Landroid/widget/LinearLayout;->setBackgroundColor(I)V

    return-void
.end method

.method public setCode(Ljava/lang/String;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/view/GenderSelectView;->l:Ljava/lang/String;

    return-void
.end method

.method public setGender(Ljava/lang/String;)V
    .locals 2

    const/4 v1, 0x1

    iput-object p1, p0, Lcom/waiqin365/lightapp/view/GenderSelectView;->n:Ljava/lang/String;

    const-string/jumbo v0, "1"

    invoke-virtual {v0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/view/GenderSelectView;->g:Landroid/widget/RadioButton;

    invoke-virtual {v0, v1}, Landroid/widget/RadioButton;->setChecked(Z)V

    const-string/jumbo v0, "\u7537"

    iput-object v0, p0, Lcom/waiqin365/lightapp/view/GenderSelectView;->o:Ljava/lang/String;

    :goto_0
    return-void

    :cond_0
    const-string/jumbo v0, "0"

    invoke-virtual {v0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/waiqin365/lightapp/view/GenderSelectView;->h:Landroid/widget/RadioButton;

    invoke-virtual {v0, v1}, Landroid/widget/RadioButton;->setChecked(Z)V

    const-string/jumbo v0, "\u5973"

    iput-object v0, p0, Lcom/waiqin365/lightapp/view/GenderSelectView;->o:Ljava/lang/String;

    goto :goto_0

    :cond_1
    const-string/jumbo v0, ""

    iput-object v0, p0, Lcom/waiqin365/lightapp/view/GenderSelectView;->o:Ljava/lang/String;

    goto :goto_0
.end method

.method public setIsMust(Ljava/lang/String;)V
    .locals 2

    const-string/jumbo v0, "1"

    invoke-virtual {v0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/view/GenderSelectView;->j:Landroid/widget/ImageView;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setVisibility(I)V

    const-string/jumbo v0, "1"

    iput-object v0, p0, Lcom/waiqin365/lightapp/view/GenderSelectView;->k:Ljava/lang/String;

    :goto_0
    return-void

    :cond_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/view/GenderSelectView;->j:Landroid/widget/ImageView;

    const/4 v1, 0x4

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setVisibility(I)V

    const-string/jumbo v0, "0"

    iput-object v0, p0, Lcom/waiqin365/lightapp/view/GenderSelectView;->k:Ljava/lang/String;

    goto :goto_0
.end method

.method public setLabel(Ljava/lang/CharSequence;)V
    .locals 2

    iget-object v0, p0, Lcom/waiqin365/lightapp/view/GenderSelectView;->i:Landroid/widget/TextView;

    invoke-interface {p1}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    return-void
.end method
